# -*- coding: utf-8 -*-
"""
 @Time    : 2021/1/28 下午2:53
 @Author  : tgy
 
"""
# x = 10
# print(dir(int))

def test01():
    ...
    x = 10
    print(locals())
    print(dir())
    locals()['y'] = 20
    globals()['y'] = 30
    # print(y)


class MyType(type):
    ...
    # def __dir__(self):
    #     return ['type']

    def AAAAA(cls):
        ...

class Top:
    opt = 11

class Person(Top,metaclass=MyType):
    ...
    # def __dir__(self):
    #     return ['c','a']

    def BBBBB(self):
        ...


def my_zip(*args):
    iters = list(map(iter,args))

    while iters:
        try:
            ...
            yield tuple(next(it) for it in iters)
        except Exception as e:
            # print(type(e))
            print(e)
            return

def test():
    test01()
    print(Person.__bases__)
    p = Person()
    p.CCC = 10
    print(dir(p))

if __name__ == '__main__':
    ...
    stop = StopIteration()
    print(type(stop))
    for val in my_zip([1,2,3],'abc'):
        print(val)